<template>
  <div class="sharecellb">
    <van-popup :show="rshareShow" position="bottom" custom-style="height: 20%;" overlay-style="background:rgba(0,0,0,0.8)" @close="shareTurn">
      <div  class="shareBox">
        <button class="shareButton" hover-class="none" open-type="share"
        :show-message-card="true"
        :send-message-path="sendMessagePath">
          <img src="https://zykj-sales.oss-cn-hangzhou.aliyuncs.com/miniprogram/client/static/zymall/zhuanfa.png">
          <p>发送给朋友</p>
        </button>
        <div class="generate_box" @tap="setPosterImageStatus">
          <div class="iconfont icon-haibao"></div>
          <p>生成海报</p>
        </div>
      </div>
    </van-popup>
    <StorePoster
      v-on:setPosterImageStatus="setPosterImageStatus"
      :posterImageStatus="posterImageStatus"
      :posterData="posterData"
    ></StorePoster>
  </div>
</template>

<script>
import StorePoster from "@/components/StorePoster";
export default {
  components: {
    StorePoster
  },
  props: ["posterImageStatus","posterData","rshareShow"],
  data(){
    return{
      // posterImageStatus: false,
      // posterData: {
      //   codePath: ""
      // },
    }
  },
  methods:{
    setPosterImageStatus() {
       this.$emit("setPosterImageStatus");
    },
    shareTurn(){
      this.$emit("listenerActionClose");
    },

  },
}
</script>

<style scoped>
.sharecellb{
      background: #ffffff;
    position: fixed;
    z-index:100;
     bottom: 0;
    width: 100%;
    left: 0;
}
  .shareBox{
    height: 100%;
    padding: 0 60rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top:#ffffff solid 1rpx;
    background: #ffffff;
  }
  .shareButton{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250rpx;
    height: 160rpx;
    flex-direction: column;
    margin-left: 0;
    background-color: #ffffff;
    border: 1rpx solid #ffffff!important;
  }
  button:after{
    border:none!important;
  }
  .shareButton img{
    width: 75rpx;
    height: 75rpx;
  }
  .shareButton p{
    line-height:60rpx;
    font-size: 32rpx;
  }
  .generate_box{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250rpx;
    height: 160rpx;
    flex-direction: column;
  }
  .generate_box p{
    line-height: 60rpx;
    font-size: 32rpx;
  }
  /* .iconfont {
    font-size: 0.8rem;
    color: #5eae72;
  } */
  .icon-haibao {
    color: #5391f1;
    width: 75rpx;
    height: 75rpx;
    font-size: 75rpx;
  }
  /* .guding{
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100vw;
    height: 100vh;
    position: fixed;
  } */
</style>

